
// function Person(props) {
//     this.name = props.name
// }

class Person {
    constructor(props) {
        // super(props)  // 'super' keyword unexpected here
        this.name = props.name
    }
}

var person1 = new Person({name: "Jack"})

console.log(person1)
console.log(person1 instanceof Person)
console.log(person1 instanceof Object)

console.log(person1.__proto__)


